# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        博智科技  
# Name:         demo1113
# Description:
# Author:       yzl
# Date:         2019-02-07
#-------------------------------------------------------------------------------


import re

s = 'bill|mike|john'

m = re.match(s,'bill')
if m is not None:
    print(m.group())

m = re.search(s,'bill is my friend')
if m is not None:
    print(m.group())
print(m)
